import 'package:flutter/material.dart';
import 'package:flutterdemo/0demo/local_notification/local_notification_util.dart';

class LocalNotificationTestPage extends StatefulWidget {
  @override
  _LocalNotificationTestPageState createState() => _LocalNotificationTestPageState();
}

class _LocalNotificationTestPageState extends State<LocalNotificationTestPage> {
  @override
  void initState() {
    // _initNotificationConfig();
//    _configureSelectNotificationSubject();
    super.initState();
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text("local notification"),
      ),
      body: Center(
        child: FlatButton(
          onPressed: () {
            LocalNotificationUtil.instance.localNotify("text", "message");
          },
          child: Text("notification"),
        ),
      ),
    );
  }
}
